package xyz.xxpc.springcloud.service.api;

import org.springframework.stereotype.Component;
import xyz.xxpc.springcloud.pojo.User;

import java.util.ArrayList;
import java.util.List;

@Component
public class UserServiceImpl implements UserService{

    @Override
    public List<User> queryAll() throws InterruptedException {
        return new ArrayList<>();
    }

    @Override
    public User query(Integer id) {
        return new User().setId(id).setUsername("错误的用户 由 hystrix提供");
    }

    @Override
    public User add(User user) {
        return null;
    }
}
